#include <iostream>

using std::cout;
using std::endl;

class Point {
public:
    Point()
    : _ix(0)
    , _iy(0)
    {   cout << "Point()" << endl;  }

    Point(int ix, int iy)
    : _ix(ix)
    , _iy(iy)
    {   cout << "Point(int,int)" << endl;}

    ~Point() {  cout << "~Point()" << endl; }

    void print() const  
    {
        cout << "(" << this->_ix 
             << "," << this->_iy
             << ")" << endl;
    }

private:
    int _ix;
    int _iy;
};


int main()
{
    Point arr[5];//这里会调用5个默认构造函数创建对象

    Point arr2[5] = {
        Point(1, 2),
        Point(3, 4)
    };

    return 0;
}

